package org.springsocial.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="Tweet")
public class ExtendedTweet implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -2548385541045357020L;
	@Id
	@Column(unique = true, name = "id", nullable = false)
	private Long id;
	
	@Column(name = "text", length = 180)
	private String text;
	
	@Column(name = "createdAt")
	private Date createdAt;
	
	@Column(name = "fromUser")
	private String fromUser;
	
	@Column(name = "profileImageUrl")
	private String profileImageUrl;
	
	@Column(name = "toUserId")
	private Long toUserId;
	
	@Column(name = "inReplyToStatusId")
	private Long inReplyToStatusId;
	
	@Column(name = "fromUserId")
	private Long fromUserId;
	
	@Column(name = "languageCode")
	private String languageCode;
	
	@Column(name = "source")
	private String source;
	
	@Column(name = "retweetCount")
	private Integer retweetCount;
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public Date getCreatedAt() {
		return createdAt;
	}
	public void setCreatedAt(Date createdAt) {
		this.createdAt = createdAt;
	}
	public String getFromUser() {
		return fromUser;
	}
	public void setFromUser(String fromUser) {
		this.fromUser = fromUser;
	}
	public String getProfileImageUrl() {
		return profileImageUrl;
	}
	public void setProfileImageUrl(String profileImageUrl) {
		this.profileImageUrl = profileImageUrl;
	}
	public Long getToUserId() {
		return toUserId;
	}
	public void setToUserId(Long toUserId) {
		this.toUserId = toUserId;
	}
	public Long getInReplyToStatusId() {
		return inReplyToStatusId;
	}
	public void setInReplyToStatusId(Long inReplyToStatusId) {
		this.inReplyToStatusId = inReplyToStatusId;
	}
	public Long getFromUserId() {
		return fromUserId;
	}
	public void setFromUserId(Long fromUserId) {
		this.fromUserId = fromUserId;
	}
	public String getLanguageCode() {
		return languageCode;
	}
	public void setLanguageCode(String languageCode) {
		this.languageCode = languageCode;
	}
	public String getSource() {
		return source;
	}
	public void setSource(String source) {
		this.source = source;
	}
	public Integer getRetweetCount() {
		return retweetCount;
	}
	public void setRetweetCount(Integer retweetCount) {
		this.retweetCount = retweetCount;
	}
	@Override
	public String toString() {
		return "ExtendedTweet [id=" + id + ", text=" + text + ", createdAt="
				+ createdAt + ", fromUser=" + fromUser + ", profileImageUrl="
				+ profileImageUrl + ", toUserId=" + toUserId
				+ ", inReplyToStatusId=" + inReplyToStatusId + ", fromUserId="
				+ fromUserId + ", languageCode=" + languageCode + ", source="
				+ source + ", retweetCount=" + retweetCount + "]";
	}

}
